<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

    <title>系统设置-星数引擎框架</title>
    <meta name="keywords" content="星数为来数字化开发引擎框架">
    <meta name="description" content="星数为来数字化开发引擎框架">
    <link rel="shortcut icon" href="http://www.xsframe.com/attachment/images/global/2024/07/mTcv43Tv23tTedel.png">

    
    <link rel="stylesheet" href="/app/admin/static/components/bootstrap/bootstrap.min.css">

    <link href="/app/admin/static/components/animate/animate.css" rel="stylesheet">

    <!--商城icon 后期将作废-->
    <link rel="stylesheet" type="text/css" href="/app/admin/static/fonts/shop/iconfont.css?v=20170503">
    <script src="/app/admin/static/fonts/shop/iconfont.js"></script>

    <!--原始样式-->
    <link rel="stylesheet" href="/app/admin/static/css/upload.css?t=20241122">
    <link rel="stylesheet" href="/app/admin/static/css/common.css?t=20241122">

    <!--后台装修-->
    <link href="/app/admin/static/css/admin.css?v=4.1.0" rel="stylesheet">
    

    
    <link href="/app/admin/static/fonts/awesome/font-awesome.min.css?v=3.2.1" rel="stylesheet">
    

    <script>var require = {urlArgs: 'v=20211031'};</script>

    <script type="text/javascript">
        if (navigator.appName === 'Microsoft Internet Explorer') {
            if (navigator.userAgent.indexOf("MSIE 5.0") > 0 || navigator.userAgent.indexOf("MSIE 6.0") > 0 || navigator.userAgent.indexOf("MSIE 7.0") > 0) {
                alert('您使用的 IE 浏览器版本过低, 推荐使用 Chrome 浏览器或 IE8 及以上版本浏览器.');
            }
        }

        window.sysinfo = {
            'uniacid': '0',
            'uid': '1',
            'siteroot': 'http://www.xsframe.com',
            'siteurl': '',
            'attachurl': 'http://www.xsframe.com/attachment/',
            'module': 'admin',
            'client': 'sysset',
        };
    </script>

    <script type="text/javascript" src="/app/admin/static/components/jquery/jquery-1.11.1.min.js"></script>

    <script type="text/javascript" src="/app/admin/static/js/web/util.js"></script>
    <script type="text/javascript" src="/app/admin/static/components/bootstrap/bootstrap.min.js"></script>
    <script type="text/javascript" src="/app/admin/static/js/web/common.min.js"></script>
    <script type="text/javascript" src="/app/admin/static/js/require.js"></script>
    <script src="/app/admin/static/js/config.js"></script>

    <script>
        require(['jquery', 'jquery.gcjs', 'init', 'tip']);
        // require(['jquery.gcjs', 'init', 'tip']);

        // 加载tip提示组件
        // require(['tip'], function () {
        // tip.msgbox.suc("登录成功");
        // tip.confirm("登录成功");
        // util.message("验证错误", '', 'error')
        // util.message("验证正确", '', 'success')
        // });
    </script>
</head>
<style>
    .wb-container {
        margin: 0 0 0 130px;
    }

    .wb-nav ~ .wb-subnav ~ .wb-container {
        margin-right: 0;
    }

    .wb-header .dropdown-menu > li {
        width: 100%;
    }

    .wb-header ul li.dropdown.ellipsis {
        min-width: 230px;
    }
</style>
<style>
    .table > thead > tr > td.full, .table > tbody > tr > td.full, .table > tfoot > tr > td.full {
        overflow: hidden;
    }

    tbody tr td {
        position: relative;
    }

    tbody tr .icow-weibiaoti--,tbody tr .icon-weibiaoti-- {
        visibility: hidden;
        display: inline-block;
        color: #fff;
        height: 18px;
        width: 18px;
        background: #e0e0e0;
        text-align: center;
        line-height: 18px;
        vertical-align: middle;
    }

    tbody tr:hover .icow-weibiaoti--,tbody tr:hover .icon-weibiaoti-- {
        visibility: visible;
    }

    tbody tr .icow-weibiaoti--.hidden,tbody tr .icon-weibiaoti--.hidden {
        visibility: hidden !important;
    }
</style>
<style>
    #bg-bk {
        position: absolute;
        right: 30px;
        bottom: 30px;
        display: none;
        overflow: hidden;
        width: 700px;
        height: 400px;
        background-color: rgba(0, 0, 0, .6);
        z-index: 1000;
    }

    #bg-content-bg {
        position: relative;
        display: flex;
        margin: 0 auto;
        height: 100%;
        max-width: 960px;
        min-width: 300px;
        text-align: center;
        flex-direction: column;
        justify-content: center
    }

    .overlay {
        width: 100%;
        height: 100%;
        position: fixed;
        z-index: -1;
        top: 0;
        left: 0;
    }

    .enlarge-image {
        display: flex;
        width: 100%;
        height: 100%;
        flex-direction: column;
        justify-content: center
    }

    .img {
        position: absolute;
        left: 10%;
        width: 80%;
        max-height: 90%;
        cursor: move;
        object-fit: contain;
    }

    .rotate-btn {
        position: absolute;
        top: 20px;
        right: 80px;
        z-index: 999999999999999999999999;
        width: 36px;
        height: 36px;
        color: #fff;
        font-size: 40px;
        cursor: pointer;
        border: 1px solid #fff;
        border-radius: 100%;
        text-align: center;
        line-height: 46px;
    }

    .close-bk {
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 999999999999999999999999;
        width: 36px;
        height: 36px;
        color: #fff;
        font-size: 26px;
        cursor: pointer;
        border: 1px solid #fff;
        border-radius: 100%;
        text-align: center;
        line-height: 30px;
    }

    .close-bk:hover {
    }

    .no-scroll {
        overflow: hidden;
    }
</style>

<style type="text/css">

</style>

<!-- 结 构 代 码 -->
<body>


<div class="wb-header" style="position: fixed;">
    <div class="logo ">
                    <img class="logo-img" src="http://www.xsframe.com/attachment/images/global/2024/07/mTcv43Tv23tTedel.png" data-url="http://www.xsframe.com/attachment/images/global/2024/07/mTcv43Tv23tTedel.png">
            <div class="title">星数引擎框架</div>
            </div>

    <ul>
                    <li>
                <a href="/admin/home/welcome.html" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="系统概况"><i class="icon icon-home"></i></a>
            </li>
            </ul>

    <div class="wb-header-flex"></div>

    <ul>
        <li class="dropdown ellipsis">
            <a class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                                    admin                <span></span>
            </a>

            <ul class="dropdown-menu">

                                    <li>
                        <a href="/admin/sysset/upgrade.html">
                            <i class="icon icon-cloud-upload" style="font-size: 22px;"></i>
                            <span style="display: block">系统升级</span>
                        </a>
                    </li>
                    <li>
                        <a href="/admin/users/profile.html" target="_blank">
                            <i class="icon icon-lock " style="font-size: 22px;"></i>
                            <span style="display: block">修改密码</span>
                        </a>
                    </li>
                                    <li data-href="/admin/login/logout.html" class="wb-header-logout">
                        <a><i class="icon icon-off"></i> 退出系统</a>
                    </li>
                
            </ul>
        </li>
        <li data-toggle="tooltip" data-placement="bottom" title="" data-href="/admin/login/logout.html" data-original-title="退出" class="wb-header-logout">
            <a><i class="icon icon-off"></i></a>
        </li>
    </ul>
</div>



<!-- 一级导航 -->
<div class="wb-nav ">
    <p class="wb-nav-fold"><i class="icon icon-outdent" style="font-size:14px;"></i></p>
    <ul id="navheight">

                    <li >
                <a data-href="http://www.xsframe.com/admin/account/index.html" class="wb-nav-item" data-module="admin" data-route="admin/account/index">
                                        <i class="icon icon-archive"></i>
                                        <span class="wb-nav-title ">商户</span>
                </a>
                <span class="wb-nav-tip">商户管理</span>
            </li>
                    <li >
                <a data-href="http://www.xsframe.com/admin/app/index.html" class="wb-nav-item" data-module="admin" data-route="admin/app/index">
                                        <i class="icon icon-th-large"></i>
                                        <span class="wb-nav-title ">应用</span>
                </a>
                <span class="wb-nav-tip">应用管理</span>
            </li>
                    <li >
                <a data-href="http://www.xsframe.com/admin/users/profile.html" class="wb-nav-item" data-module="admin" data-route="admin/users/profile">
                                        <i class="icon icon-user"></i>
                                        <span class="wb-nav-title ">用户</span>
                </a>
                <span class="wb-nav-tip">用户管理</span>
            </li>
                    <li class="active">
                <a data-href="http://www.xsframe.com/admin/sysset/site.html" class="wb-nav-item" data-module="admin" data-route="admin/sysset/site">
                                        <i class="icon icon-desktop"></i>
                                        <span class="wb-nav-title ">系统</span>
                </a>
                <span class="wb-nav-tip">系统设置</span>
            </li>
        
    </ul>
</div>


    <!-- 二级导航 -->
        <div class="wb-subnav">
        <div style="width: 100%;height: 100%;overflow-y: auto">

            <div class="subnav-scene">
                系统设置            </div>

                                    <ul class="single">
                            <li class="" style="position: relative" data-route="admin/sysset/site">
                                <a href="http://www.xsframe.com/admin/sysset/site.html" style="cursor: pointer;" data-route="/admin/sysset/site.html"><span class="wb-nav-title ">站点设置</span></a>
                            </li>
                        </ul>
                                                                                    <ul class="single">
                            <li class="" style="position: relative" data-route="admin/sysset/host">
                                <a href="http://www.xsframe.com/admin/sysset/host.html" style="cursor: pointer;" data-route="/admin/sysset/host.html"><span class="wb-nav-title ">域名设置</span></a>
                            </li>
                        </ul>
                                                                                    <ul class="single">
                            <li class="" style="position: relative" data-route="admin/sysset/attachment">
                                <a href="http://www.xsframe.com/admin/sysset/attachment.html" style="cursor: pointer;" data-route="/admin/sysset/attachment.html"><span class="wb-nav-title ">附件设置</span></a>
                            </li>
                        </ul>
                                                                                    <ul class="single">
                            <li class="" style="position: relative" data-route="admin/sysset/upgrade">
                                <a href="http://www.xsframe.com/admin/sysset/upgrade.html" style="cursor: pointer;" data-route="/admin/sysset/upgrade.html"><span class="wb-nav-title ">系统升级</span></a>
                            </li>
                        </ul>
                                                                                    <div class="menu-header active data-active"><div class="menu-icon icon icon-caret-down"></div><span class="wb-nav-title ">常用工具</span></div>
                        <ul style="display: block">
                                                        <li class="" data-route="admin/sysset/form"><a href="http://www.xsframe.com/admin/sysset/form.html" style="cursor: pointer;" data-route="/admin/sysset/form.html"><span class="wb-nav-title ">系统表单</span></a>
                                                        <li class="" data-route="admin/sysset/icon"><a href="http://www.xsframe.com/admin/sysset/icon.html" style="cursor: pointer;" data-route="/admin/sysset/icon.html"><span class="wb-nav-title ">系统图标</span></a>
                                                        <li class="active" data-route="admin/sysset/static"><a href="http://www.xsframe.com/admin/sysset/static.html" style="cursor: pointer;" data-route="/admin/sysset/static.html"><span class="wb-nav-title ">静态页面</span></a>
                                                        <li class="" data-route="admin/sysset/bom"><a href="http://www.xsframe.com/admin/sysset/bom.html" style="cursor: pointer;" data-route="/admin/sysset/bom.html"><span class="wb-nav-title ">检测BOM</span></a>
                                                    </ul>
                                                
            <div class="wb-subnav-fold icow"></div>
        </div>
    </div>
    



<div class="wb-container">
                <div style="padding: 0 20px 30px 20px;box-sizing: border-box;" class="wb-content">
                
<div class="page-header">当前位置：<span class="text-primary">静态页面</span></div>
<div class="page-content">

    <div class="alert alert-default">这里是生成的静态页面，通过此方法可以实现客户端静态化的一个生成</div>

</div>

            </div>
        
    <div id="page-loading">
        <div class="page-loading-inner">
            <div class="sk-three-bounce">
                <div class="sk-child sk-bounce1"></div>
                <div class="sk-child sk-bounce2"></div>
                <div class="sk-child sk-bounce3"></div>
            </div>
        </div>
    </div>

    

                <div class="container-fluid footer text-center copyright-footer">
                <div class="copyright"><p>星数为来(杭州)科技有限公司</p></div>
            </div>
            

</div>

<!--图片放大 start-->
<div id="bg-bk" style="display: none;">
    <div class="overlay"></div>
    <div class="rotate-btn">*</div>
    <div class="close-bk">×</div>
    <div id="bg-content-bg">
        <div class="enlarge-image" id="enlarge-image"></div>
    </div>
</div>
<!--图片放大 end-->

<script type="text/javascript">
    $(() => {
        $('.magnifier img').each(function () {
            let img = $(this);
            let src = img.attr('src');
            let isNo = img.hasClass('magnifier-no');
            if (!isNo) {
                img.wrap(`<a data-magnify="gallery" style="cursor:pointer;" onclick="showMagnifier('${src}',10)"></a>`);
            }
        });
        $(".overlay").click(() => {
            $("#bg-bk").fadeOut()
            let body = document.querySelector('body');
            body.classList.remove('no-scroll');
        })

        let isOwner = parseInt("1");
        let isSystem = parseInt("1");

        if( isOwner === 1 && isSystem === 1 ){
            let isUpgradeSystemNotice = util.cookie.get('isUpgradeSystemNotice') || 0;
            if( parseInt(isUpgradeSystemNotice) === 0 ){
                checkSystemVersion();
            }
            // 定义一个异步函数
            async function checkSystemVersion() {
                try {
                    const response = await fetch("http://www.xsframe.com/admin/sysset/checkVersion.html");
                    const data = await response.json();

                    let isUpgrade = data.result.isUpgrade;

                    if( isUpgrade ){
                        util.cookie.set('isUpgradeSystemNotice', 1,3600);
                        tip.confirm("系统检测到有新版本，请及时更新",function(){
                            location.href = "http://www.xsframe.com/admin/sysset/upgrade.html"
                        });
                    }
                } catch (error) {
                    console.log('Error fetching data:', error);
                }
            }
        }

    })

    // 图片放大
    $(window).keydown(function (e) {
        27 === e.which && ($("#bg-bk").fadeOut(), document.querySelector('body').classList.remove('no-scroll'))
    })

    function showMagnifier(url, multiple = 2.0) {
        let isDown = false;
        let closebk = $(".close-bk")
        let rotateBtn = $(".rotate-btn")
        let bg = $("#bg-bk")
        let step = 1;
        let x, y;
        let l;
        let t;
        let body = document.querySelector('body');
        let rotate = 0;

        $("#enlarge-image").empty()
        $("#enlarge-image").append("<img class='img' src='" + url + "'>")
        let img = document.querySelectorAll(".img")[0];

        body.classList.add('no-scroll');

        bg.fadeIn()

        /* zoom */
        document.onmousewheel = function (e) {
            let isbig = e.wheelDelta;
            if (isbig >= 0) {
                if (step >= multiple) {
                } else {
                    step += 0.1;
                    img.style.transform = "scale(" + step + ") " + (rotate > 0 ? `rotate(${rotate}deg)` : '');
                }
            } else {
                if (step <= 0.7) {
                } else {
                    step -= 0.1;
                    img.style.transform = "scale(" + step + ") " + (rotate > 0 ? `rotate(${rotate}deg)` : '');
                }
            }
        }
        /* zoom */

        img.onmousedown = function (e) {
            e.preventDefault()
            img.style.cursor = "move"
            // console.log(e.offsetX);
            // console.log(img.offsetLeft);
            x = e.clientX;
            y = e.clientY;
            l = img.offsetLeft;
            t = img.offsetTop;
            isDown = true;
        }

        document.onmousemove = function (e) {
            if (isDown == false) {
                return;
            } else {
                let nx = e.clientX;
                let ny = e.clientY;
                //计算移动后的左偏移量和顶部的偏移量
                let nl = nx - (x - l);
                let nt = ny - (y - t);
                img.style.left = nl + 'px';
                img.style.top = nt + 'px';
            }
        }

        img.onmouseup = function () {
            // img.style.cursor = "default"
            isDown = false
        }

        closebk.click(function () {
            bg.fadeOut()
        })
        rotateBtn.click(function () {
            if (rotate >= 360) {
                rotate = 0;
            }
            rotate = rotate + 45;
            img.style.transform = "scale(" + step + ") " + (rotate > 0 ? `rotate(${rotate}deg)` : '');
        })
    }
</script>

<div class="modal fade" id="public_modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
     aria-hidden="true"></div>

<script>
    // 计算页面高度
    let iframePage = document.getElementById('iframePage');
    if (iframePage) {
        let windowHeight = document.body.clientHeight;
        iframePage.style.height = (windowHeight - 145) + 'px';
    }
</script>

<script>
    // 二维码
    $(() => {
        require(['bootstrap'], function ($) {

            /*添加拖拽功能 start*/
            $(document).on("show.bs.modal", ".modal", function () {
                require(['jquery.ui'],() => {
                    $(this).draggable({
                        handle: ".modal-header",   // 只能点击头部拖动
                        cursor: 'move',
                    });
                    $(this).css("overflow", "hidden"); // 防止出现滚动条，出现的话，你会把滚动条一起拖着走的
                })
            });
            /*添加拖拽功能 end*/

            // 鼠标选中弹出信息框
            $("[rel=pop]").popover({
                trigger: 'manual',
                placement: 'right',
                title: $(this).data('title'),
                html: true,
                content: $(this).data('content'),
                animation: false
            }).on("mouseenter", function () {
                let _this = this;
                $(this).popover("show");
                $(this).siblings(".popover").on("mouseleave", function () {
                    $(_this).popover('hide');
                });
            }).on("mouseleave", function () {
                let _this = this;
                setTimeout(function () {
                    if (!$(".popover:hover").length) {
                        $(_this).popover("hide")
                    }
                }, 100);
            });
        });

        // tab切换
        $('#myTab a').click(function (e) {
            $('#tab').val($(this).attr('href'));
            e.preventDefault();
            $(this).tab('show');
        });

        require(['jquery.qrcode'], function () {
            $(".qrcode-box").hover(function () {
                $(this).children('.qrcode').show().html("").qrcode({
                    render: "canvas",
                    width: 140,
                    height: 140,
                    text: $(this).children('.qrcode').data('url')
                });
                $(this).children('.qrcode').append(`<div class="arrow" style="top: 50%;"></div>`)
            }, function () {
                $(this).children('.qrcode').hide();
            })

            $(".qrcode-info").each(function () {
                $(this).children('.qrcode').show().html("").qrcode({
                    render: "canvas",
                    width: 140,
                    height: 140,
                    text: $(this).children('.qrcode').data('url')
                });
            })
        });

        // 监测搜索表单是否添加了i参数 start
        let $form = $('.table-search');
        let inputExists = $form.find('input[type="hidden"][name="i"]').length > 0;
        if (!inputExists && encodeURIComponent("{$_GET['i']??0}") > 0) {
            $form.prepend('<input type="hidden" name="i" value="' + encodeURIComponent("") + '"/>');
        }
        // end
    })
</script>

<!--低分辨率一级导航显示不全问题 start-->
<script>
    let navheight = document.getElementById('navheight');
    let navwidth = document.getElementById('navwidth');
    let vh = document.body.clientHeight;
    let vw = screen.width;

    if (navheight) {
        if (vh < 800) {
            navheight.classList.add("wb-navheight");
        } else {
            navheight.classList.remove("wb-navheight");
        }

        if (vw < 1300) {
            navwidth.classList.add("wb-navwidth");
        }
    }
</script>

<!--低分辨率一级导航显示不全问题 end-->

<script>
    // 模态框
    function ajaxModel(obj) {
        let url = $(obj).data('url');
        $.get(url, {}, function (html) {
            $("#public_modal").html(html).modal('show');
        });
    }

    // 防止bootstrap自带的tooltip和popover在模态框中失效
    $('[data-toggle="tooltip"]').tooltip("destroy").tooltip({
        container: $(document.body)
    });
    $('[data-toggle="popover"]').popover("destroy").popover({
        container: $(document.body)
    });

</script>





<script>
    if ($('form.form-validate').length <= 0) {
        window.formInited = true;
    }

    window.formInitTimer = setInterval(function () {
        if (typeof (window.formInited) !== 'undefined') {
            $('#page-loading').remove();
            clearInterval(window.formInitTimer);
        }
    }, 1);
</script>

</body>

</html>